export const setAsVal = (obj, bind = '', value) => {
    let result
    if (typeof value === 'string') {
        result = `obj.${bind}='${value}'`
    } else {
        result = `obj.${bind}=${JSON.stringify(value)}`
    }
    // console.log(result)
    // console.log(obj)
    eval(result)
    return obj
}
